package homework;

import java.io.*;

public class Test03 {
    public static void main(String[] args) throws IOException {
        File dir = new File("./src/io");
        File[] subs = dir.listFiles((f) -> f.getName().endsWith(".java"));
        for (int i = 0; i < subs.length; i++) {
            File sub = subs[i];
            BufferedReader br = new BufferedReader(
                    new InputStreamReader(
                            new FileInputStream(sub)
                    )
            );
            String line;
            while ((line = br.readLine())!=null){
                System.out.println(line);
            }
            br.close();
        }
    }
}
